import request from '@/utils/request'

function deleteIndex(data) {
  return request({
    url: '/front/elastic/delete/'+data,
    method: 'get',
  })
}

function addCourse(data) {
  return request({
    url: '/front/elastic/addCourse',
    method: 'get',
    params:data
  })
}

function addBlog(data) {
  return request({
    url: '/front/elastic/addBlog',
    method: 'get',
    params:data
  })
}

function addResource(data) {
  return request({
    url: '/front/elastic/addResource',
    method: 'get',
    params:data
  })
}
export default {deleteIndex,addCourse,addBlog,addResource}